package com.demo.ecpPDF.controller;

import com.demo.ecpPDF.service.YesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Validated
@RestController
//@Scope(value = WebApplicationContext.SCOPE_REQUEST)
@RequestMapping("/yes")
public class YesController {
    @Autowired
    private YesService yesService;
    @RequestMapping("/say")
    public String a() {
        return yesService.yes();
    }
}



